Base class for shader resources. Those are resources that can be fed to a Shader. More...
Public Member Functions | |
ShaderResource () | |
~ShaderResource () | |
virtual void | activate (SHADER_TYPE shaderStage, unsigned int slot)=0 |
![]() | |
Resource () | |
Resource (const char *path) | |
virtual | ~Resource () |
virtual bool | load ()=0 |
virtual void | unload ()=0 |
bool | isReadyForRendering () const |
bool | isUnloaded () const |
RESOURCE_LOAD_STATE | getLoadState () const |
std::string_view | getResourcePath () const |
RESOURCE_TYPE | getResourceTypeName () const |
std::string_view | getResourceName () const |
bool | getHidden () const |
virtual void | setResourcePath (const std::string_view &path) |
void | setResourceName (const std::string_view &name) |
void | setHidden (bool value) |
Base class for shader resources. Those are resources that can be fed to a Shader.
nkGraphics::ShaderResource::ShaderResource | ( | ) |
Constructor.
nkGraphics::ShaderResource::~ShaderResource | ( | ) |
Destructor.
|
pure virtual |
Activation of the resource. Old API that will be removed.